package com.example.aixiangshou.runninggame;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.TextView;

import com.x_memteor.base_master.utils.ToastUtils;

public class SignInActivity extends AppCompatActivity implements View.OnClickListener {

    /**
     * FACEBOOK
     */
    private TextView mTvFacebookLogin;
    /**
     * GOOGLE PLAY SIGN IN
     */
    private TextView mTvGoogleLogin;
    /**
     * REGISTER
     */
    private TextView mTvLogin;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_sign_in);
        initView();
    }

    private void initView() {
        mTvFacebookLogin = (TextView) findViewById(R.id.tv_facebook_login);
        mTvFacebookLogin.setOnClickListener(this);
        mTvGoogleLogin = (TextView) findViewById(R.id.tv_google_login);
        mTvGoogleLogin.setOnClickListener(this);
        mTvLogin = (TextView) findViewById(R.id.tv_login);
        mTvLogin.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            default:
                break;
            case R.id.tv_facebook_login:
                ToastUtils.showCenterToast(this, getResources().getString(R.string.toast_wait_fun));
                break;
            case R.id.tv_google_login:
                ToastUtils.showCenterToast(this, getResources().getString(R.string.toast_wait_fun));
                break;
            case R.id.tv_login:
                Intent intent = new Intent(this, SignInDetalActivity.class);
                startActivity(intent);
                break;
        }
    }
}
